package com.ffsky.route;

import com.ffsky.route.model.RouteModel;

public abstract class FFRoute {


    static boolean ENABLE_DEBUG = false;
    static boolean ENABLE_LOG = false;

    private static FFRoute INSTANCE = null;

    public static FFRoute getInstance() {
        if(INSTANCE==null){
            INSTANCE = new AppRoute();
            INSTANCE.load();
        }
        return INSTANCE;
    }

    public static void setEnableDebug(boolean enableDebug) {
        ENABLE_DEBUG = enableDebug;
    }

    public static void setEnableLog(boolean enableLog) {
        ENABLE_LOG = enableLog;
    }

    protected abstract void load();


    public abstract RouteModel build(String path);

}
